<?php


/* --------------------------
 * PREPROCESS THEME HOOKS
 * -------------------------- */
 
function pamela_preprocess_html(&$variables){
    // Add Stylesheet
    drupal_add_css('_ui/libs/css/reset.css', array('group' => CSS_THEME, 'preprocess' => FALSE));
    drupal_add_css('_ui/skin/css/shared.css', array('group' => CSS_THEME, 'preprocess' => FALSE));
    drupal_add_css('_ui/skin/css/style.css', array('group' => CSS_THEME, 'preprocess' => FALSE));
    

    // Add Javascript
    drupal_add_js('_ui/libs/jquery/js/reset.js', array('group' => JS_THEME, 'preprocess' => FALSE));
    drupal_add_js('_ui/skin/js/_main.js', array('group' => JS_THEME, 'preprocess' => FALSE));
}


/* --------------------------
 * UTILITIES
 * -------------------------- */ 
 
/* Format markup for primary menu */
function pamela_main_menu($main_menu) {
    return theme('links__system_main_menu', array(
        'links' => $main_menu,
            'attributes' => array(
            'id' => 'main-menu-links',
            'class' => array('links', 'clearfix'),
        ),
        'heading' => array(
            'text' => t('Main menu'),
            'level' => 'h2',
            'class' => array('element-invisible'),
        ),
    ));
}



// Now include the Garland phptemplate_* functions
// Make sure this line comes AFTER any function definitions in this file
require_once $_SERVER['DOCUMENT_ROOT'].'/themes/garland/template.php';
